package com.zhijiaoyun.model;

import java.io.Serializable;
import java.util.Date;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public class OrderDetail implements Serializable {
	private static final long serialVersionUID = 1510901695486114518L;

	private Long id;

    private Long userId;

    private String orderNum;

    private Long goodsId;

    private Integer goodsType;

    private Integer amount;

    private Date createTime;

    public OrderDetail() {
		super();
	}

	public OrderDetail(Long userId, String orderNum, Long goodsId, Integer goodsType, Integer amount) {
		super();
		this.userId = userId;
		this.orderNum = orderNum;
		this.goodsId = goodsId;
		this.goodsType = goodsType;
		this.amount = amount;
		this.createTime = new Date();
	}

	public Integer getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(Integer goodsType) {
		this.goodsType = goodsType;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum == null ? null : orderNum.trim();
    }

    public Long getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}

	public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}